home *** CD-ROM | disk | FTP | other *** search
/ Holt Researcher: American History / Holt Researcher: American History.iso / pc / modules / tour.dxr / 00414.ls < prev    next >
Encoding:
Text File  |  2000-01-21  |  670 b   |  26 lines

  1. on exitFrame
  2.   global gMenuButton, gMenuExit, gTourForwardArrow, gTourBackArrow, gCurrLabel, gPlaySound, audioPath
  3.   if the frameLabel <> 0 then
  4.     gCurrLabel = the frameLabel
  5.   end if
  6.   if gPlaySound then
  7.     gPlaySound = 0
  8.     soundFile = getAudioFile(the frame)
  9.     sound playFile 1, audioPath & soundFile & ".AIF"
  10.   end if
  11.   repeat with rc in [gMenuButton, gMenuExit, gTourForwardArrow, gTourBackArrow]
  12.     doRollover(rc)
  13.   end repeat
  14.   if soundBusy(1) then
  15.     go(the frame)
  16.   else
  17.     repeat with z = 2 to 10
  18.       if not (the memberNum of sprite z = 0) then
  19.         sprite(z).visible = 1
  20.       end if
  21.     end repeat
  22.     gPlaySound = 1
  23.     go(#next)
  24.   end if
  25. end
  26.